<?
//Clean 0.0.1
class sym_clean extends symbiont{
    public function ___main($design=''){
        $this->___temp();
        $this->___cache();
    }
    public function ___temp($design=''){
        global $kernel;
        $kernel->site->temp_regenerate=true;
    }
    public function ___cache($design=''){
        $dir=opendir('cache/');
        while($f=readdir($dir)){
            if($f=='.'||$f=='..') continue;
            data::folder_delete('cache/'.$f.'/');
        }
    }
}
?>